package com.example.saifly.inPageRecord.RecordModel;

import java.util.Date;

public class BodyData extends BodyDataKey {
    private Integer lowBloodPressure;

    private Integer heightBloodPressure;

    private Float bodyTemperature;

    private Integer stepCount;

    private Integer carbonPressure;

    private Integer bloodOxygenPressure;

    private Integer bloodOxygen;

    private Integer heartRate;

    public BodyData(Date date, String patientPhone, Integer lowBloodPressure, Integer heightBloodPressure, Float bodyTemperature, Integer stepCount, Integer carbonPressure, Integer bloodOxygenPressure, Integer bloodOxygen, Integer heartRate) {
        super(date, patientPhone);
        this.lowBloodPressure = lowBloodPressure;
        this.heightBloodPressure = heightBloodPressure;
        this.bodyTemperature = bodyTemperature;
        this.stepCount = stepCount;
        this.carbonPressure = carbonPressure;
        this.bloodOxygenPressure = bloodOxygenPressure;
        this.bloodOxygen = bloodOxygen;
        this.heartRate = heartRate;
    }

    public BodyData(Date date, String patientPhone) {
        super(date, patientPhone);

    }

    public BodyData() {
    }

    public boolean isNotNull() {
        if(this.lowBloodPressure==0||this.heightBloodPressure==0 ||  this.bodyTemperature==0|| this.stepCount==0|| this.carbonPressure==0|| this.bloodOxygenPressure==0|| this.bloodOxygen==0|| this.heartRate==0){
            return false;
        }
        return true;
    }

    public Integer getLowBloodPressure() {
        return lowBloodPressure;
    }

    public void setLowBloodPressure(Integer lowBloodPressure) {
        this.lowBloodPressure = lowBloodPressure;
    }

    public Integer getHeightBloodPressure() {
        return heightBloodPressure;
    }

    public void setHeightBloodPressure(Integer heightBloodPressure) {
        this.heightBloodPressure = heightBloodPressure;
    }

    public Float getBodyTemperature() {
        return bodyTemperature;
    }

    public void setBodyTemperature(Float bodyTemperature) {
        this.bodyTemperature = bodyTemperature;
    }

    public Integer getStepCount() {
        return stepCount;
    }

    public void setStepCount(Integer stepCount) {
        this.stepCount = stepCount;
    }

    public Integer getCarbonPressure() {
        return carbonPressure;
    }

    public void setCarbonPressure(Integer carbonPressure) {
        this.carbonPressure = carbonPressure;
    }

    public Integer getBloodOxygenPressure() {
        return bloodOxygenPressure;
    }

    public void setBloodOxygenPressure(Integer bloodOxygenPressure) {
        this.bloodOxygenPressure = bloodOxygenPressure;
    }

    public Integer getBloodOxygen() {
        return bloodOxygen;
    }

    public void setBloodOxygen(Integer bloodOxygen) {
        this.bloodOxygen = bloodOxygen;
    }

    public Integer getHeartRate() {
        return heartRate;
    }

    public void setHeartRate(Integer heartRate) {
        this.heartRate = heartRate;
    }

    @Override
    public String toString() {
        return "BodyData{" +
                "lowBloodPressure=" + lowBloodPressure +
                ", heightBloodPressure=" + heightBloodPressure +
                ", bodyTemperature=" + bodyTemperature +
                ", stepCount=" + stepCount +
                ", carbonPressure=" + carbonPressure +
                ", bloodOxygenPressure=" + bloodOxygenPressure +
                ", bloodOxygen=" + bloodOxygen +
                ", heartRate=" + heartRate +
                ", date=" + date +
                ", patientPhone='" + patientPhone + '\'' +
                '}';
    }
}